Optimal. Leaf size=67 \[ \frac {\left (b c^2+a d^2\right ) (-c+d x)^{3/2} (c+d x)^{3/2}}{3 d^4}+\frac {b (-c+d x)^{5/2} (c+d x)^{5/2}}{5 d^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 72, normalized size of antiderivative = 1.07, number of steps
used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {471, 75}
\begin {gather*} \frac {(d x-c)^{3/2} (c+d x)^{3/2} \left (5 a d^2+2 b c^2\right )}{15 d^4}+\frac {b x^2 (d x-c)^{3/2} (c+d x)^{3/2}}{5 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 75
Rule 471
Rubi steps
\begin {align*} \int x \sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right ) \, dx &=\frac {b x^2 (-c+d x)^{3/2} (c+d x)^{3/2}}{5 d^2}-\frac {1}{5} \left (-5 a-\frac {2 b c^2}{d^2}\right ) \int x \sqrt {-c+d x} \sqrt {c+d x} \, dx\\ &=\frac {\left (2 b c^2+5 a d^2\right ) (-c+d x)^{3/2} (c+d x)^{3/2}}{15 d^4}+\frac {b x^2 (-c+d x)^{3/2} (c+d x)^{3/2}}{5 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 49, normalized size = 0.73 \begin {gather*} \frac {(-c+d x)^{3/2} (c+d x)^{3/2} \left (2 b c^2+5 a d^2+3 b d^2 x^2\right )}{15 d^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.27, size = 56, normalized size = 0.84
method | result | size |
gosper | \(\frac {\left (d x +c \right )^{\frac {3}{2}} \left (3 b \,d^{2} x^{2}+5 a \,d^{2}+2 b \,c^{2}\right ) \left (d x -c \right )^{\frac {3}{2}}}{15 d^{4}}\) | \(44\) |
default | \(-\frac {\sqrt {d x -c}\, \sqrt {d x +c}\, \left (-d^{2} x^{2}+c^{2}\right ) \left (3 b \,d^{2} x^{2}+5 a \,d^{2}+2 b \,c^{2}\right )}{15 d^{4}}\) | \(56\) |
risch | \(\frac {\sqrt {d x +c}\, \left (-3 b \,d^{4} x^{4}-5 a \,d^{4} x^{2}+b \,c^{2} d^{2} x^{2}+5 a \,c^{2} d^{2}+2 b \,c^{4}\right ) \left (-d x +c \right )}{15 \sqrt {d x -c}\, d^{4}}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 70, normalized size = 1.04 \begin {gather*} \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b x^{2}}{5 \, d^{2}} + \frac {2 \, {\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b c^{2}}{15 \, d^{4}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} a}{3 \, d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.65, size = 66, normalized size = 0.99 \begin {gather*} \frac {{\left (3 \, b d^{4} x^{4} - 2 \, b c^{4} - 5 \, a c^{2} d^{2} - {\left (b c^{2} d^{2} - 5 \, a d^{4}\right )} x^{2}\right )} \sqrt {d x + c} \sqrt {d x - c}}{15 \, d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \left (a + b x^{2}\right ) \sqrt {- c + d x} \sqrt {c + d x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 361 vs.
\(2 (55) = 110\).
time = 0.74, size = 361, normalized size = 5.39 \begin {gather*} \frac {5 \, {\left ({\left ({\left (d x + c\right )} {\left (2 \, {\left (d x + c\right )} {\left (\frac {3 \, {\left (d x + c\right )}}{d^{3}} - \frac {13 \, c}{d^{3}}\right )} + \frac {43 \, c^{2}}{d^{3}}\right )} - \frac {39 \, c^{3}}{d^{3}}\right )} \sqrt {d x + c} \sqrt {d x - c} - \frac {18 \, c^{4} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{3}}\right )} b c + 20 \, {\left (\sqrt {d x + c} \sqrt {d x - c} {\left ({\left (d x + c\right )} {\left (\frac {2 \, {\left (d x + c\right )}}{d^{2}} - \frac {7 \, c}{d^{2}}\right )} + \frac {9 \, c^{2}}{d^{2}}\right )} + \frac {6 \, c^{3} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{2}}\right )} a d + {\left ({\left ({\left (2 \, {\left (d x + c\right )} {\left (3 \, {\left (d x + c\right )} {\left (\frac {4 \, {\left (d x + c\right )}}{d^{4}} - \frac {21 \, c}{d^{4}}\right )} + \frac {133 \, c^{2}}{d^{4}}\right )} - \frac {295 \, c^{3}}{d^{4}}\right )} {\left (d x + c\right )} + \frac {195 \, c^{4}}{d^{4}}\right )} \sqrt {d x + c} \sqrt {d x - c} + \frac {90 \, c^{5} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right )}{d^{4}}\right )} b d - \frac {60 \, {\left (2 \, c^{2} \log \left ({\left | -\sqrt {d x + c} + \sqrt {d x - c} \right |}\right ) - \sqrt {d x + c} \sqrt {d x - c} {\left (d x - 2 \, c\right )}\right )} a c}{d}}{120 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.64, size = 83, normalized size = 1.24 \begin {gather*} \sqrt {d\,x-c}\,\left (\frac {b\,x^4\,\sqrt {c+d\,x}}{5}-\frac {\left (2\,b\,c^4+5\,a\,c^2\,d^2\right )\,\sqrt {c+d\,x}}{15\,d^4}+\frac {x^2\,\left (5\,a\,d^4-b\,c^2\,d^2\right )\,\sqrt {c+d\,x}}{15\,d^4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________